import * as THREE from 'three';

const geometry = new THREE.PlaneGeometry(50,50);

// 创建纹理加载器对象
const loaderTex = new THREE.TextureLoader();

const material = new THREE.MeshBasicMaterial({ 
    // 设置材质的颜色贴图
    map: loaderTex.load('./tripaccommedation.png'),
    transparent: true,// 开启透明，则透明图片区域不显示
})
// material.map = texture;


const mesh = new THREE.Mesh(geometry, material);

mesh.rotation.x = -Math.PI/2;


export default mesh;